<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div></div>
    <div></div>
    <div></div>
    <div></div>
    <script>

        // ...  把伪数组变成真正的数组
let oDivs = document.getElementsByTagName('div'); 
 let newDivs = [...oDivs];



//  console.log(oDivs)
//  oDivs.push(1);
//  console.log(oDivs)
 console.log(newDivs)

 newDivs.push(1);
 console.log(newDivs)




 

    </script>
</body>
</html>